<?php
    echo "<h2> Master Testimonials </h2>";
    
    $category[1] = 'Employer';
    $category[2] = 'Jobseeker';
    
    $status[1] = 'All';
    $status[2] = 'Published';
    $status[3] = '> 1 month';
    $status[4] = 'Stored ';
    $status[5] = ' > 1 month';
    
    echo "<form id='filter'>";
        echo "<label id='left' style='text-align:right'>Category : &nbsp</label>"; 
        echo $form->select('category',$category);
        echo " &nbsp " ;
        echo $form->select('status',$status);
    echo "</form>";
    
    echo $ajax->observeForm('filter',
                            array('url'=>array('controller'=>'testimonials','action'=>'filter_admin'),
                            'update'=>'result','frequency' => 0.2)
                            );
    echo "<br>";
    echo "<div id='result'></div>";          
?>